package com.dense.kuiniu.bookborrow.business.entity;

import android.os.Parcel;
import android.os.Parcelable;

import com.google.gson.annotations.SerializedName;

/**
 * @author Administrator
 * @date 2021/1/25
 */
public class BorrowBookInfo implements Parcelable {
    private String backFlag;
    @SerializedName("应还日期")
    private String backDate;
    @SerializedName("题名")
    private String bookName;
    @SerializedName("流通状态")
    private String state;
    @SerializedName("条形码")
    private String barCode;
    private String backInfor;
    @SerializedName("借出日期")
    private String borrowDate;
    private String bookCover;
    private String bookauthor;
    private boolean isChecked;

    public boolean isChecked() {
        return isChecked;
    }

    public void setChecked(boolean checked) {
        isChecked = checked;
    }

    public String getBookauthor() {
        return bookauthor;
    }

    public void setBookauthor(String bookauthor) {
        this.bookauthor = bookauthor;
    }

    public String getBookCover() {
        return bookCover;
    }

    public void setBookCover(String bookCover) {
        this.bookCover = bookCover;
    }

    public String getBackFlag() {
        return backFlag;
    }

    public void setBackFlag(String backFlag) {
        this.backFlag = backFlag;
    }

    public String getBackDate() {
        return backDate;
    }

    public void setBackDate(String backDate) {
        this.backDate = backDate;
    }

    public String getBookName() {
        return bookName;
    }

    public void setBookName(String bookName) {
        this.bookName = bookName;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getBarCode() {
        return barCode;
    }

    public void setBarCode(String barCode) {
        this.barCode = barCode;
    }

    public String getBackInfor() {
        return backInfor;
    }

    public void setBackInfor(String backInfor) {
        this.backInfor = backInfor;
    }

    public String getBorrowDate() {
        return borrowDate;
    }

    public void setBorrowDate(String borrowDate) {
        this.borrowDate = borrowDate;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.backFlag);
        dest.writeString(this.backDate);
        dest.writeString(this.bookName);
        dest.writeString(this.state);
        dest.writeString(this.barCode);
        dest.writeString(this.backInfor);
        dest.writeString(this.borrowDate);
    }

    public BorrowBookInfo() {
    }

    protected BorrowBookInfo(Parcel in) {
        this.backFlag = in.readString();
        this.backDate = in.readString();
        this.bookName = in.readString();
        this.state = in.readString();
        this.barCode = in.readString();
        this.backInfor = in.readString();
        this.borrowDate = in.readString();
    }

    public static final Parcelable.Creator<BorrowBookInfo> CREATOR = new Parcelable.Creator<BorrowBookInfo>() {
        @Override
        public BorrowBookInfo createFromParcel(Parcel source) {
            return new BorrowBookInfo(source);
        }

        @Override
        public BorrowBookInfo[] newArray(int size) {
            return new BorrowBookInfo[size];
        }
    };
}